package com.yuan.model_lease.repository;

import com.yuan.model_lease.domain.LeaseRecords;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface LeaseRecordsDao extends JpaRepository<LeaseRecords, Integer>, JpaSpecificationExecutor<LeaseRecords> {

    @Query(value = "select user from User user where user.id = :userId ")
    String findNiceNameByUserId(Long userId);
}
